<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>极简空间</title>
    <style>
        /* 基础重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #fff;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 导航栏 */
        nav {
            padding: 2rem 0;
            border-bottom: 1px solid #eee;
            margin-bottom: 3rem;
        }
        
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 600;
            text-decoration: none;
            color: #333;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 2rem;
        }
        
        .nav-links a {
            text-decoration: none;
            color: #666;
            transition: color 0.3s ease;
        }
        
        .nav-links a:hover {
            color: #333;
        }
        
        /* 主内容区 */
        .hero {
            text-align: center;
            padding: 4rem 0;
            margin-bottom: 4rem;
        }
        
        .hero h1 {
            font-size: 2.5rem;
            font-weight: 400;
            margin-bottom: 1rem;
        }
        
        .hero p {
            font-size: 1.2rem;
            color: #666;
            max-width: 600px;
            margin: 0 auto;
        }
        
        /* 内容区块 */
        .section {
            margin-bottom: 5rem;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 400;
            margin-bottom: 2rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #eee;
        }
        
        /* 网格布局 */
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .card {
            background: #fff;
            transition: transform 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-5px);
        }
        
        .card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            margin-bottom: 1rem;
        }
        
        .card h3 {
            font-size: 1.2rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
        }
        
        .card p {
            color: #666;
        }
        
        /* 关于部分 */
        .about {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }
        
        .about-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
        }
        
        /* 联系表单 */
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #666;
        }
        
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ddd;
            font-family: inherit;
            font-size: 1rem;
        }
        
        .form-group textarea {
            min-height: 150px;
            resize: vertical;
        }
        
        button {
            background: #333;
            color: #fff;
            border: none;
            padding: 1rem 2rem;
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.3s ease;
        }
        
        button:hover {
            background: #000;
        }
        
        /* 页脚 */
        footer {
            text-align: center;
            padding: 3rem 0;
            margin-top: 5rem;
            border-top: 1px solid #eee;
            color: #666;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .nav-container {
                flex-direction: column;
            }
            
            .nav-links {
                margin-top: 1.5rem;
            }
            
            .nav-links li {
                margin: 0 1rem;
            }
            
            .hero {
                padding: 2rem 0;
            }
            
            .hero h1 {
                font-size: 2rem;
            }
            
            .about {
                grid-template-columns: 1fr;
            }
            
            .about-image {
                height: 300px;
            }
        }
        
        @media (max-width: 480px) {
            body {
                padding: 0 15px;
            }
            
            .hero h1 {
                font-size: 1.8rem;
            }
            
            .grid {
                grid-template-columns: 1fr;
            }
            
            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .nav-links li {
                margin: 0.5rem;
            }
        }
    </style>
</head>
<body>
    <nav>
        <div class="nav-container">
            <a href="#" class="logo">极简空间</a>
            <ul class="nav-links">
                <li><a href="#home">首页</a></li>
                <li><a href="#work">作品</a></li>
                <li><a href="#about">关于</a></li>
                <li><a href="#contact">联系</a></li>
            </ul>
        </div>
    </nav>
    
    <section class="hero" id="home">
        <h1>简约而不简单</h1>
        <p>专注于本质，去除冗余，创造宁静而有力的数字体验。</p>
    </section>
    
    <section class="section" id="work">
        <h2 class="section-title">精选作品</h2>
        <div class="grid">
            <div class="card">
                <img src="https://picsum.photos/800/600?random=1" alt="项目一">
                <h3>项目一</h3>
                <p>简洁的设计，清晰的传达，专注于用户体验。</p>
            </div>
            <div class="card">
                <img src="https://picsum.photos/800/600?random=2" alt="项目二">
                <h3>项目二</h3>
                <p>极简主义方法，减少干扰，增强内容可读性。</p>
            </div>
            <div class="card">
                <img src="https://picsum.photos/800/600?random=3" alt="项目三">
                <h3>项目三</h3>
                <p>功能与形式的完美平衡，创造宁静的数字空间。</p>
            </div>
        </div>
    </section>
    
    <section class="section" id="about">
        <h2 class="section-title">关于我们</h2>
        <div class="about">
            <div>
                <p>我们相信，最好的设计是那些几乎不被注意的设计——它们只是工作得很好，感觉很自然。</p>
                <p>通过极简主义的方法，我们去除不必要的元素，专注于真正重要的东西：内容、功能和用户体验。</p>
                <p>我们的目标是创造宁静、直观且有效的数字体验，让用户专注于他们想要完成的事情，而不是界面本身。</p>
            </div>
            <img src="https://picsum.photos/800/600?random=4" alt="关于我们" class="about-image">
        </div>
    </section>
    
    <section class="section" id="contact">
        <h2 class="section-title">联系我们</h2>
        <form id="contact-form">
            <div class="form-group">
                <label for="name">姓名</label>
                <input type="text" id="name" required>
            </div>
            <div class="form-group">
                <label for="email">邮箱</label>
                <input type="email" id="email" required>
            </div>
            <div class="form-group">
                <label for="message">消息</label>
                <textarea id="message" required></textarea>
            </div>
            <button type="submit">发送消息</button>
        </form>
    </section>
    
    <footer>
        <p>© 2023 极简空间. 保留所有权利.</p>
    </footer>

    <script>
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                
                const targetId = this.getAttribute('href');
                if(targetId === '#') return;
                
                const targetElement = document.querySelector(targetId);
                if(targetElement) {
                    window.scrollTo({
                        top: targetElement.offsetTop - 20,
                        behavior: 'smooth'
                    });
                }
            });
        });
        
        // 表单提交处理
        const contactForm = document.getElementById('contact-form');
        if(contactForm) {
            contactForm.addEventListener('submit', function(e) {
                e.preventDefault();
                
                // 获取表单数据
                const formData = {
                    name: document.getElementById('name').value,
                    email: document.getElementById('email').value,
                    message: document.getElementById('message').value
                };
                
                // 在实际应用中，这里会发送数据到服务器
                // 此处仅做演示
                alert(`谢谢您的消息，${formData.name}！我们会尽快回复您。`);
                
                // 重置表单
                contactForm.reset();
            });
        }
        
        // 导航栏滚动效果
        window.addEventListener('scroll', function() {
            const nav = document.querySelector('nav');
            if (window.scrollY > 50) {
                nav.style.padding = '1rem 0';
            } else {
                nav.style.padding = '2rem 0';
            }
        });
    </script>
</body>
</html>